<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/16
  Time: 10:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        pageContext.setAttribute("user","page_user");
        pageContext.setAttribute("user","new_quest_user",PageContext.REQUEST_SCOPE);
        pageContext.setAttribute("user","new_session_user",PageContext.SESSION_SCOPE);
        pageContext.setAttribute("user","new_app_user",PageContext.APPLICATION_SCOPE);
    %>
    <%
        String user1= (String) request.getAttribute("user");
        String userSession= (String) session.getAttribute("user");
        String userapp= (String) application.getAttribute("user");
        String userpage=(String) pageContext.findAttribute("user");
    %>
    <%=user1%><br>
    <%=userSession%><br>
    <%=userapp%>
</body>
</html>
